home *** CD-ROM | disk | FTP | other *** search
- @echo off
- @echo ---------------------------------------------
- @echo I I
- @echo I This file should update some or I
- @echo I all of these files I
- @echo I SDC.lib SWC.lib SDV.lib I
- @echo I SDL.lib SWL.lib SDX.lib I
- @echo I SDMlib SWM.lib SNN.lib I
- @echo I SDS.lib SWS.lib I
- @echo I I
- @echo I Also some header files in INCLUDE, I
- @echo I INCLUDE\WIN32 I
- @echo I I
- @echo I depending on the version(STD/PRO) of SC I
- @echo I files in your \SC dir I
- @echo I I
- @echo I steps: I
- @echo I cd to \SC I
- @echo I Type "rtlupdat" I
- @echo I I
- @echo ---------------------------------------------
- pause
-
- rem test if any of the compiler components is present.
- rem if not, display error
- if exist .\bin\sccx.exe goto SDXpatch
- if exist .\bin\scppx.exe goto SDXpatch
- if exist .\bin\sccd.dll goto SDXpatch
- if not exist .\bin\scppd.dll goto error
-
- :SDXpatch
- rem do the SDX patching
- if not exist .\lib\sdx.lib goto SDLpatch
- rtlpatch .\lib sdx-611.rtp /nopathsearch /ignore
-
- :SDLpatch
- rem do the SDL patching
- if not exist .\lib\sdl.lib goto SWMpatch
- rtlpatch .\lib sdl-611.rtp /nopathsearch /ignore
-
- :SWMpatch
- rem do the SWM patching
- if not exist .\lib\swm.lib goto patch
- rtlpatch .\lib swm-611.rtp /nopathsearch /ignore
-
- :patch
- rem do rest of the libraries patching
- rtlpatch .\lib restrtl.rtp /nopathsearch /ignore
-
- :INC32patch
- rem do the INCLUDE\WIN32 patching
- if not exist .\include\win32\windows.h goto INCpatch
- rtlpatch .\include\win32 inc32.rtp /nopathsearch /ignore
-
- :INCpatch
- rem do the INCLUDE patching
- if not exist .\include\windows.h goto Cleanup
- rtlpatch .\include restinc.rtp /nopathsearch /ignore
-
- :Cleanup
- rem cleaning up
- @echo -------------------------------------------------
- @echo This will now delete files related to
- @echo this Libraries patch with the exception of
- @echo RTLUPDAT.TXT detailing the changes made for
- @echo Symantec C++ 6.11
- @echo .
- @echo Press Ctrl+C to abort
- @echo -------------------------------------------------
- pause
-
- rem files containing the patches
- del SDX-611.RTP
- del SDL-611.RTP
- del SWM-611.RTP
- del INC32.RTP
- del RESTINC.RTP
- del RESTRTL.RTP
-
- rem self-extracting archives
- del RTL611.EXE
-
- rem patch utility
- del RTLPATCH.EXE
-
- rem readme-first files
- del RTLREAD.1ST
-
- rem patch instructions
- del RTL611.TXT
-
- goto end
-
- rem display error
- :error
- @echo -------------------------------------
- @echo You are not in the right directory!
- @echo Change directory to the root of
- @echo your Symantec C++ installation,
- @echo typically \SC
- @echo -------------------------------------
-
- :end
-